class Response {
    private status: number;
    private message: string;
    private data: any;

    constructor(status: number, message: string, data: any) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public getStatus(): number {
        return this.status;
    }

    public getMessage(): string {
        return this.message;
    }

    public getData(): any {
        return this.data;
    }

    public toJson(): string {
        return JSON.stringify({
            status: this.status,
            message: this.message,
            data: this.data,
        });
    }
}

export default Response;